package com.woniuxy.microretailserver.mapper;

import com.woniuxy.microretailserver.bean.RefundCountBean;
import com.woniuxy.microretailserver.bean.RefundCountDateBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Mapper
@Repository
public interface RefundCountMapper {

    /**
     * 分类查询退款表中的金额汇总
     * @param
     * @return
     */
    List<RefundCountBean> findRefundByTime();

    /**
     * 按时间查询退款表中的金额汇总
     * @param time
     * @return
     */
    List<RefundCountBean> findReByTime(@Param("paymentTime") String time);
}
